package main

import (
	"fmt"
	"math"
	"math/cmplx"
)

func floatFunc() {
	f := math.Sqrt(3*3 + 4*4)
	fmt.Println(f)
}

func complexFunc() {
	c := 3 + 4i
	fmt.Println(cmplx.Abs(c))
	fmt.Println(cmplx.Pow(math.E, 1i*math.Pi))
	fmt.Println(cmplx.Exp(1i * math.Pi))
}

func enums() {
	const (
		//c = iota
		c = 1 << (iota * 10)
		_
		cpp
		python
		js
		php
		lua
	)

	fmt.Println(c, cpp, python, js, php, lua)
}

func main() {
	floatFunc()
	complexFunc()

	enums()
}
